This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Printing to LPT1 directly ~Karl Prefanateretsi 5.Dec.03 09:37 PM a Web browser Domino Designer 6.5Windows 2000
Thanks for the feedback!
The way you propose is too easy. :) I actually found another way using the Windows print system. I like your way better though so I'll probably end up tweaking it to work through Notes natively.
Here's the code that I found also works:
Dim strMessage As String
strMessage = "test message"
' Create FileSystem Object and Windows Scripting Host Network Object
Dim objFS As Variant
Dim objPrinter As Variant
Set objFS = CreateObject ( "Scripting.FileSystemObject" )
Set objPrinter = objFS.CreateTextFile ( "LPT1:", True )
objPrinter.Write ( strMessage )
objPrinter.Close